using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using Evolution.Model.Interfaces;
using Evolution.Model.DAO;

namespace Evolution.Model
{
    public static class TypeFactory
    {
        private static Hashtable _TypeList = new Hashtable();

        static TypeFactory()
        {
            // _TypeList.Add(typeof(<interface>), typeof(<implementation class>));

            _TypeList.Add(typeof(IAccount), typeof(Account));
            _TypeList.Add(typeof(ICharacter), typeof(Character));
        }

        public static T CreateType<T>()
        {
            return (T)Activator.CreateInstance((Type)_TypeList[typeof(T)]);
        }
    }
}
